//
//  UIImage+ResizableImage.m
//  BaseNormal
//
//  Created by uplooking on 2018/1/9.
//  Copyright © 2018年 RenLong. All rights reserved.
//

#import "UIImage+ResizableImage.h"

@implementation UIImage (ResizableImage)

- (UIImage *)resizableImage:(NSString *)name
{
    UIImage *normal = [UIImage imageNamed:name];
    CGFloat w = normal.size.width * 0.5;
    CGFloat h = normal.size.height * 0.5;
    return [normal resizableImageWithCapInsets:UIEdgeInsetsMake(w, h, w, h)];
} 

@end
